#ifndef BASEWINDOW_H
#define BASEWINDOW_H

#include <QMainWindow>
#include <QEvent>

class BaseWindow : public QMainWindow
{
    Q_OBJECT
public:
    // 有 explicit，必须明确写出，显式构造
    explicit BaseWindow(QWidget *parent = nullptr);
    void showEvent(QShowEvent *event) override;
protected:
    void changeEvent(QEvent *event) override;
    virtual void initUI();
    virtual void initStyle();

    const int MIN_WIDTH = 1200; //最小宽度
    const int MIN_HEIGHT = 800; //最小高度
    bool m_initialized = false;
    void setupBaseStyle();
};

#endif // BASEWINDOW_H
